home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 35 / Amiga Format AFCD35 (Issue 119, Jan 1999).iso / -in_the_mag- / reader_requests / gencodec / source / hook_utility.h < prev    next >
C/C++ Source or Header  |  1998-11-06  |  431b  |  18 lines

  1. /*  Prototypes for Hook_Utility */
  2.  
  3. #include <utility/hooks.h>
  4.  
  5. /* prototype for C_Function
  6.  
  7.     a0 points to a struct hook.
  8.     See MUI AutoDocs in order to know what registers (a2,a1) point.
  9.  
  10. */
  11. typedef APTR (*proto_c_function)(struct Hook *a0,APTR a2,APTR a1);
  12.  
  13. /*
  14.     Don't forget to allocate the struct Hook.
  15.     Data is the h_Data field of the struct Hook.
  16. */
  17. void InstallHook(struct Hook *hook, proto_c_function c_function, APTR Data);
  18.